package com.gycode.vpush.controller;


import com.gycode.vpush.job.handler.TimingWebSocketHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author PC
 */
@Slf4j
@RestController
@RequestMapping("/Test")
public class TestController {
    @Autowired
    private TimingWebSocketHandler timingWebSocketHandler;

    @PostMapping("/getTimingWebSocketHandler")
    public String getTimingWebSocketHandler() throws Exception {
        timingWebSocketHandler.execute("s");
        return "SUCCESS";
    }
}
